<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Bayesian Network: bn::adjacency_list Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Bayesian Network
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>bn</b></li><li class="navelem"><a class="el" href="classbn_1_1adjacency__list.html">adjacency_list</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classbn_1_1adjacency__list-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">bn::adjacency_list Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Implement class of adjacency list for <a class="el" href="classbn_1_1network.html" title="Provide a functions for each graph representing class. ">bn::network</a>.  
 <a href="classbn_1_1adjacency__list.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="adjacency__list_8hpp_source.html">adjacency_list.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:ad8098ea2f84c8874fc5db528dfb16e06"><td class="memItemLeft" align="right" valign="top"><a id="ad8098ea2f84c8874fc5db528dfb16e06"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>this_type</b> = <a class="el" href="classbn_1_1adjacency__list.html">adjacency_list</a></td></tr>
<tr class="separator:ad8098ea2f84c8874fc5db528dfb16e06"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adbf5efc92f8ee3b8e7a4cf1492b54006"><td class="memItemLeft" align="right" valign="top"><a id="adbf5efc92f8ee3b8e7a4cf1492b54006"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>node_ptr</b> = component::node_ptr</td></tr>
<tr class="separator:adbf5efc92f8ee3b8e7a4cf1492b54006"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab11464f77328c3bd5eb0ba964c0249a"><td class="memItemLeft" align="right" valign="top"><a id="aab11464f77328c3bd5eb0ba964c0249a"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>arc_ptr</b> = component::arc_ptr</td></tr>
<tr class="separator:aab11464f77328c3bd5eb0ba964c0249a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a339b4ccbd1462b7b40027f246fb0cfd2"><td class="memItemLeft" align="right" valign="top"><a id="a339b4ccbd1462b7b40027f246fb0cfd2"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>node_const_ptr</b> = <a class="el" href="traits_8hpp.html#aa44fb0011435752a09a0f9b519f8d863">traits::add_const_shared_t</a>&lt; component::node_ptr &gt;</td></tr>
<tr class="separator:a339b4ccbd1462b7b40027f246fb0cfd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa106faac1b55faa14197745cb97e1bf"><td class="memItemLeft" align="right" valign="top"><a id="afa106faac1b55faa14197745cb97e1bf"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>arc_const_ptr</b> = <a class="el" href="traits_8hpp.html#aa44fb0011435752a09a0f9b519f8d863">traits::add_const_shared_t</a>&lt; component::arc_ptr &gt;</td></tr>
<tr class="separator:afa106faac1b55faa14197745cb97e1bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a134537c2db0ff4c2ac847aef182c6ca2"><td class="memItemLeft" align="right" valign="top"><a id="a134537c2db0ff4c2ac847aef182c6ca2"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>stored_node_type</b> = std::list&lt; node_ptr &gt;</td></tr>
<tr class="separator:a134537c2db0ff4c2ac847aef182c6ca2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2bef760ce9bfda84698f712e87cf314e"><td class="memItemLeft" align="right" valign="top"><a id="a2bef760ce9bfda84698f712e87cf314e"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>stored_arc_type</b> = std::list&lt; arc_ptr &gt;</td></tr>
<tr class="separator:a2bef760ce9bfda84698f712e87cf314e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8bb5bfd3fbd0b9d91c2d4a27ec68b1bf"><td class="memItemLeft" align="right" valign="top"><a id="a8bb5bfd3fbd0b9d91c2d4a27ec68b1bf"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>endpoint_dictionary_type</b> = std::unordered_map&lt; arc_const_ptr, std::pair&lt; node_const_ptr, node_const_ptr &gt; &gt;</td></tr>
<tr class="separator:a8bb5bfd3fbd0b9d91c2d4a27ec68b1bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83e0314200ad24d824ff97ec2a2ee513"><td class="memItemLeft" align="right" valign="top"><a id="a83e0314200ad24d824ff97ec2a2ee513"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>adjacency_type</b> = std::unordered_map&lt; node_const_ptr, std::list&lt; std::pair&lt; node_const_ptr, arc_const_ptr &gt; &gt;&gt;</td></tr>
<tr class="separator:a83e0314200ad24d824ff97ec2a2ee513"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a56528f0e620055a956b3b76f21474b52"><td class="memItemLeft" align="right" valign="top"><a id="a56528f0e620055a956b3b76f21474b52"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1adjacency__list.html#a56528f0e620055a956b3b76f21474b52">adjacency_list</a> ()=default</td></tr>
<tr class="memdesc:a56528f0e620055a956b3b76f21474b52"><td class="mdescLeft">&#160;</td><td class="mdescRight">(Default ctor) Initialize nodes and arcs as empty. <br /></td></tr>
<tr class="separator:a56528f0e620055a956b3b76f21474b52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a963c8ef046ffcc00b8236a6736eccfc3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1adjacency__list.html#a963c8ef046ffcc00b8236a6736eccfc3">adjacency_list</a> (<a class="el" href="classbn_1_1adjacency__list.html">this_type</a> const &amp;)=default</td></tr>
<tr class="memdesc:a963c8ef046ffcc00b8236a6736eccfc3"><td class="mdescLeft">&#160;</td><td class="mdescRight">(Copy ctor) Initialize nodes and arcs by copying a parameter.  <a href="#a963c8ef046ffcc00b8236a6736eccfc3">More...</a><br /></td></tr>
<tr class="separator:a963c8ef046ffcc00b8236a6736eccfc3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34e8f4c07b26b74f366898549e1f2f6f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1adjacency__list.html#a34e8f4c07b26b74f366898549e1f2f6f">adjacency_list</a> (<a class="el" href="classbn_1_1adjacency__list.html">this_type</a> &amp;&amp;)=default</td></tr>
<tr class="memdesc:a34e8f4c07b26b74f366898549e1f2f6f"><td class="mdescLeft">&#160;</td><td class="mdescRight">(Move ctor) Initialize nodes and arcs by moving a parameter.  <a href="#a34e8f4c07b26b74f366898549e1f2f6f">More...</a><br /></td></tr>
<tr class="separator:a34e8f4c07b26b74f366898549e1f2f6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adfed1578ea650163d81f45ad158c39a1"><td class="memItemLeft" align="right" valign="top"><a id="adfed1578ea650163d81f45ad158c39a1"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1adjacency__list.html#adfed1578ea650163d81f45ad158c39a1">~adjacency_list</a> ()=default</td></tr>
<tr class="memdesc:adfed1578ea650163d81f45ad158c39a1"><td class="mdescLeft">&#160;</td><td class="mdescRight">(Default dtor) <br /></td></tr>
<tr class="separator:adfed1578ea650163d81f45ad158c39a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96bb46a6180c3a5c15dd63918975ee8e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbn_1_1adjacency__list.html">this_type</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1adjacency__list.html#a96bb46a6180c3a5c15dd63918975ee8e">operator=</a> (<a class="el" href="classbn_1_1adjacency__list.html">this_type</a> const &amp;rhs)</td></tr>
<tr class="memdesc:a96bb46a6180c3a5c15dd63918975ee8e"><td class="mdescLeft">&#160;</td><td class="mdescRight">(Copy operator=) Initialize nodes and arcs by copying a parameter.  <a href="#a96bb46a6180c3a5c15dd63918975ee8e">More...</a><br /></td></tr>
<tr class="separator:a96bb46a6180c3a5c15dd63918975ee8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada8f58c3a8cc89689b648b792e274568"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbn_1_1adjacency__list.html">this_type</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1adjacency__list.html#ada8f58c3a8cc89689b648b792e274568">operator=</a> (<a class="el" href="classbn_1_1adjacency__list.html">this_type</a> &amp;&amp;)=default</td></tr>
<tr class="memdesc:ada8f58c3a8cc89689b648b792e274568"><td class="mdescLeft">&#160;</td><td class="mdescRight">(Move operator=) Initialize nodes and arcs by copying a parameter.  <a href="#ada8f58c3a8cc89689b648b792e274568">More...</a><br /></td></tr>
<tr class="separator:ada8f58c3a8cc89689b648b792e274568"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf24ef021137fdd8e500ec8dd6749774"><td class="memItemLeft" align="right" valign="top">node_ptr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1adjacency__list.html#abf24ef021137fdd8e500ec8dd6749774">add_node</a> (node_ptr const &amp;node)</td></tr>
<tr class="memdesc:abf24ef021137fdd8e500ec8dd6749774"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register a node into network.  <a href="#abf24ef021137fdd8e500ec8dd6749774">More...</a><br /></td></tr>
<tr class="separator:abf24ef021137fdd8e500ec8dd6749774"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1c9a5cf37ca7bffd406b813f0b59428"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1adjacency__list.html#ac1c9a5cf37ca7bffd406b813f0b59428">remove_node</a> (node_ptr const &amp;node) noexcept</td></tr>
<tr class="memdesc:ac1c9a5cf37ca7bffd406b813f0b59428"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove the argument node from network.  <a href="#ac1c9a5cf37ca7bffd406b813f0b59428">More...</a><br /></td></tr>
<tr class="separator:ac1c9a5cf37ca7bffd406b813f0b59428"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a287ac7e2fd3df22e35f5a7b27986a770"><td class="memItemLeft" align="right" valign="top">arc_ptr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1adjacency__list.html#a287ac7e2fd3df22e35f5a7b27986a770">add_arc</a> (arc_ptr const &amp;arc, node_ptr const &amp;from, node_ptr const &amp;to)</td></tr>
<tr class="memdesc:a287ac7e2fd3df22e35f5a7b27986a770"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register an arc into network.  <a href="#a287ac7e2fd3df22e35f5a7b27986a770">More...</a><br /></td></tr>
<tr class="separator:a287ac7e2fd3df22e35f5a7b27986a770"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a889cf34dd957108c100a5686d5db02dc"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1adjacency__list.html#a889cf34dd957108c100a5686d5db02dc">remove_arc</a> (arc_ptr const &amp;arc) noexcept</td></tr>
<tr class="memdesc:a889cf34dd957108c100a5686d5db02dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove the argument arc from network.  <a href="#a889cf34dd957108c100a5686d5db02dc">More...</a><br /></td></tr>
<tr class="separator:a889cf34dd957108c100a5686d5db02dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8caaa67f706804674614981631cf43fb"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1adjacency__list.html#a8caaa67f706804674614981631cf43fb">remove_arc</a> (node_ptr const &amp;from, node_ptr const &amp;to) noexcept</td></tr>
<tr class="memdesc:a8caaa67f706804674614981631cf43fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove the argument arc from network.  <a href="#a8caaa67f706804674614981631cf43fb">More...</a><br /></td></tr>
<tr class="separator:a8caaa67f706804674614981631cf43fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6c3b0389bd180830d86d1dd1ac7eac3"><td class="memItemLeft" align="right" valign="top">arc_ptr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1adjacency__list.html#ab6c3b0389bd180830d86d1dd1ac7eac3">is_adjacent</a> (node_ptr const &amp;from, node_ptr const &amp;to) const noexcept</td></tr>
<tr class="memdesc:ab6c3b0389bd180830d86d1dd1ac7eac3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check whether two nodes are adjacent by a arc in the network.  <a href="#ab6c3b0389bd180830d86d1dd1ac7eac3">More...</a><br /></td></tr>
<tr class="separator:ab6c3b0389bd180830d86d1dd1ac7eac3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48be8e72365ef266b83b33a6f3c65e41"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1adjacency__list.html#a48be8e72365ef266b83b33a6f3c65e41">is_connect</a> (node_ptr const &amp;node, arc_ptr const &amp;arc) const noexcept</td></tr>
<tr class="memdesc:a48be8e72365ef266b83b33a6f3c65e41"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check whether a node and an arc are connected in the network.  <a href="#a48be8e72365ef266b83b33a6f3c65e41">More...</a><br /></td></tr>
<tr class="separator:a48be8e72365ef266b83b33a6f3c65e41"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acba5fbbf9149f26dbb56feecaa6ab4d8"><td class="memItemLeft" align="right" valign="top">node_ptr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1adjacency__list.html#acba5fbbf9149f26dbb56feecaa6ab4d8">source</a> (arc_ptr const &amp;arc) const noexcept</td></tr>
<tr class="memdesc:acba5fbbf9149f26dbb56feecaa6ab4d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtain a source (parent) node of an arc.  <a href="#acba5fbbf9149f26dbb56feecaa6ab4d8">More...</a><br /></td></tr>
<tr class="separator:acba5fbbf9149f26dbb56feecaa6ab4d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c23312b4b02d4eb7ab0384ae03b96dc"><td class="memItemLeft" align="right" valign="top">node_ptr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1adjacency__list.html#a9c23312b4b02d4eb7ab0384ae03b96dc">target</a> (arc_ptr const &amp;arc) const noexcept</td></tr>
<tr class="memdesc:a9c23312b4b02d4eb7ab0384ae03b96dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtain a target (child) node of an arc.  <a href="#a9c23312b4b02d4eb7ab0384ae03b96dc">More...</a><br /></td></tr>
<tr class="separator:a9c23312b4b02d4eb7ab0384ae03b96dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0ac355e7ff890c1c23aefef0a2ef8bc"><td class="memItemLeft" align="right" valign="top">std::vector&lt; node_ptr &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1adjacency__list.html#ab0ac355e7ff890c1c23aefef0a2ef8bc">parent_nodes</a> (node_ptr const &amp;child) const</td></tr>
<tr class="memdesc:ab0ac355e7ff890c1c23aefef0a2ef8bc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtain a list of all nodes which are parent of the child (argument).  <a href="#ab0ac355e7ff890c1c23aefef0a2ef8bc">More...</a><br /></td></tr>
<tr class="separator:ab0ac355e7ff890c1c23aefef0a2ef8bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc77c52a720bdebd1b656cda969d2513"><td class="memItemLeft" align="right" valign="top">std::vector&lt; node_ptr &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1adjacency__list.html#acc77c52a720bdebd1b656cda969d2513">child_nodes</a> (node_ptr const &amp;parent) const</td></tr>
<tr class="memdesc:acc77c52a720bdebd1b656cda969d2513"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtain a list of all nodes which are child of the parent (argument).  <a href="#acc77c52a720bdebd1b656cda969d2513">More...</a><br /></td></tr>
<tr class="separator:acc77c52a720bdebd1b656cda969d2513"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a629f2d67914c2b3c93da9ea2e5db83"><td class="memItemLeft" align="right" valign="top"><a id="a0a629f2d67914c2b3c93da9ea2e5db83"></a>
std::vector&lt; node_ptr &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1adjacency__list.html#a0a629f2d67914c2b3c93da9ea2e5db83">all_node</a> () const</td></tr>
<tr class="memdesc:a0a629f2d67914c2b3c93da9ea2e5db83"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtain all node pointers. <br /></td></tr>
<tr class="separator:a0a629f2d67914c2b3c93da9ea2e5db83"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa3c371db2f5fca960ee20a5281bea8e"><td class="memItemLeft" align="right" valign="top"><a id="afa3c371db2f5fca960ee20a5281bea8e"></a>
std::vector&lt; arc_ptr &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1adjacency__list.html#afa3c371db2f5fca960ee20a5281bea8e">all_arc</a> () const</td></tr>
<tr class="memdesc:afa3c371db2f5fca960ee20a5281bea8e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtain all arc pointers. <br /></td></tr>
<tr class="separator:afa3c371db2f5fca960ee20a5281bea8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Implement class of adjacency list for <a class="el" href="classbn_1_1network.html" title="Provide a functions for each graph representing class. ">bn::network</a>. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a963c8ef046ffcc00b8236a6736eccfc3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a963c8ef046ffcc00b8236a6736eccfc3">&#9670;&nbsp;</a></span>adjacency_list() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bn::adjacency_list::adjacency_list </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classbn_1_1adjacency__list.html">this_type</a> const &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>(Copy ctor) Initialize nodes and arcs by copying a parameter. </p>
<p>The parameter will "not" be destroyed (still valid). </p>

</div>
</div>
<a id="a34e8f4c07b26b74f366898549e1f2f6f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a34e8f4c07b26b74f366898549e1f2f6f">&#9670;&nbsp;</a></span>adjacency_list() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bn::adjacency_list::adjacency_list </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classbn_1_1adjacency__list.html">this_type</a> &amp;&amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>(Move ctor) Initialize nodes and arcs by moving a parameter. </p>
<p>The parameter will be destroyed. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a287ac7e2fd3df22e35f5a7b27986a770"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a287ac7e2fd3df22e35f5a7b27986a770">&#9670;&nbsp;</a></span>add_arc()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">arc_ptr bn::adjacency_list::add_arc </td>
          <td>(</td>
          <td class="paramtype">arc_ptr const &amp;&#160;</td>
          <td class="paramname"><em>arc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">node_ptr const &amp;&#160;</td>
          <td class="paramname"><em>from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">node_ptr const &amp;&#160;</td>
          <td class="paramname"><em>to</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Register an arc into network. </p>
<p>Strong guarantee: if an exception is thrown, there are no changes in the network.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">arc</td><td>an arc. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">from</td><td>a node which is a start point of the arc. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">to</td><td>a node which is an end point of the arc. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The arc which is identical with the parameter. </dd></dl>

</div>
</div>
<a id="abf24ef021137fdd8e500ec8dd6749774"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf24ef021137fdd8e500ec8dd6749774">&#9670;&nbsp;</a></span>add_node()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">node_ptr bn::adjacency_list::add_node </td>
          <td>(</td>
          <td class="paramtype">node_ptr const &amp;&#160;</td>
          <td class="paramname"><em>node</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Register a node into network. </p>
<p>Strong guarantee: if an exception is thrown, there are no changes in the network.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">node</td><td>Target node. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The node which is identical with the parameter. </dd></dl>

</div>
</div>
<a id="acc77c52a720bdebd1b656cda969d2513"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acc77c52a720bdebd1b656cda969d2513">&#9670;&nbsp;</a></span>child_nodes()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;node_ptr&gt; bn::adjacency_list::child_nodes </td>
          <td>(</td>
          <td class="paramtype">node_ptr const &amp;&#160;</td>
          <td class="paramname"><em>parent</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Obtain a list of all nodes which are child of the parent (argument). </p>
<p>Strong guarantee: if an exception is thrown, there are no changes in the network.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">parent</td><td>a node which is an start point. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a list of all nodes. </dd></dl>

</div>
</div>
<a id="ab6c3b0389bd180830d86d1dd1ac7eac3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab6c3b0389bd180830d86d1dd1ac7eac3">&#9670;&nbsp;</a></span>is_adjacent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">arc_ptr bn::adjacency_list::is_adjacent </td>
          <td>(</td>
          <td class="paramtype">node_ptr const &amp;&#160;</td>
          <td class="paramname"><em>from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">node_ptr const &amp;&#160;</td>
          <td class="paramname"><em>to</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Check whether two nodes are adjacent by a arc in the network. </p>
<p>No-throw guarantee: never throws exceptions.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">from</td><td>a node which is a start point. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">to</td><td>a node which is an end point. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if from and to are adjacent; otherwise false. </dd></dl>

</div>
</div>
<a id="a48be8e72365ef266b83b33a6f3c65e41"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a48be8e72365ef266b83b33a6f3c65e41">&#9670;&nbsp;</a></span>is_connect()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int bn::adjacency_list::is_connect </td>
          <td>(</td>
          <td class="paramtype">node_ptr const &amp;&#160;</td>
          <td class="paramname"><em>node</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">arc_ptr const &amp;&#160;</td>
          <td class="paramname"><em>arc</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Check whether a node and an arc are connected in the network. </p>
<p>No-throw guarantee: never throws exceptions.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">node</td><td>a node which is a start or end point. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">arc</td><td>an arc. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>&gt; 0 : the node is a start (parent) node of the arc; &lt; 0 : the node is an end (child) node of the arc; = 0 : the node does not connect to the arc. </dd></dl>

</div>
</div>
<a id="a96bb46a6180c3a5c15dd63918975ee8e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a96bb46a6180c3a5c15dd63918975ee8e">&#9670;&nbsp;</a></span>operator=() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classbn_1_1adjacency__list.html">this_type</a>&amp; bn::adjacency_list::operator= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classbn_1_1adjacency__list.html">this_type</a> const &amp;&#160;</td>
          <td class="paramname"><em>rhs</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>(Copy operator=) Initialize nodes and arcs by copying a parameter. </p>
<p>The parameter will "not" be destroyed (still valid). </p>

</div>
</div>
<a id="ada8f58c3a8cc89689b648b792e274568"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ada8f58c3a8cc89689b648b792e274568">&#9670;&nbsp;</a></span>operator=() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classbn_1_1adjacency__list.html">this_type</a>&amp; bn::adjacency_list::operator= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classbn_1_1adjacency__list.html">this_type</a> &amp;&amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>(Move operator=) Initialize nodes and arcs by copying a parameter. </p>
<p>The parameter will be destroyed. </p>

</div>
</div>
<a id="ab0ac355e7ff890c1c23aefef0a2ef8bc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab0ac355e7ff890c1c23aefef0a2ef8bc">&#9670;&nbsp;</a></span>parent_nodes()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;node_ptr&gt; bn::adjacency_list::parent_nodes </td>
          <td>(</td>
          <td class="paramtype">node_ptr const &amp;&#160;</td>
          <td class="paramname"><em>child</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Obtain a list of all nodes which are parent of the child (argument). </p>
<p>Strong guarantee: if an exception is thrown, there are no changes in the network.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">child</td><td>a node which is an end point. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a list of all nodes. </dd></dl>

</div>
</div>
<a id="a889cf34dd957108c100a5686d5db02dc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a889cf34dd957108c100a5686d5db02dc">&#9670;&nbsp;</a></span>remove_arc() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool bn::adjacency_list::remove_arc </td>
          <td>(</td>
          <td class="paramtype">arc_ptr const &amp;&#160;</td>
          <td class="paramname"><em>arc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Remove the argument arc from network. </p>
<p>Strong guarantee: if an exception is thrown, there are no changes in the network.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">arc</td><td>Target arc. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the node was successfully removed; otherwise false. </dd></dl>

</div>
</div>
<a id="a8caaa67f706804674614981631cf43fb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8caaa67f706804674614981631cf43fb">&#9670;&nbsp;</a></span>remove_arc() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool bn::adjacency_list::remove_arc </td>
          <td>(</td>
          <td class="paramtype">node_ptr const &amp;&#160;</td>
          <td class="paramname"><em>from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">node_ptr const &amp;&#160;</td>
          <td class="paramname"><em>to</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Remove the argument arc from network. </p>
<p>Strong guarantee: if an exception is thrown, there are no changes in the network.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">from</td><td>a node which is a start point of the arc wanted to remove. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">to</td><td>a node which is an end point of the arc wanted to remove. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the node was successfully removed; otherwise false. </dd></dl>

</div>
</div>
<a id="ac1c9a5cf37ca7bffd406b813f0b59428"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac1c9a5cf37ca7bffd406b813f0b59428">&#9670;&nbsp;</a></span>remove_node()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool bn::adjacency_list::remove_node </td>
          <td>(</td>
          <td class="paramtype">node_ptr const &amp;&#160;</td>
          <td class="paramname"><em>node</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Remove the argument node from network. </p>
<p>Strong guarantee: if an exception is thrown, there are no changes in the network.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">node</td><td>Target node. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the node was successfully removed; otherwise false. </dd></dl>

</div>
</div>
<a id="acba5fbbf9149f26dbb56feecaa6ab4d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acba5fbbf9149f26dbb56feecaa6ab4d8">&#9670;&nbsp;</a></span>source()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">node_ptr bn::adjacency_list::source </td>
          <td>(</td>
          <td class="paramtype">arc_ptr const &amp;&#160;</td>
          <td class="paramname"><em>arc</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Obtain a source (parent) node of an arc. </p>
<p>No-throw guarantee: never throws exceptions.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">arc</td><td>an arc </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a source node pointer if it is exist; otherwise false </dd></dl>

</div>
</div>
<a id="a9c23312b4b02d4eb7ab0384ae03b96dc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9c23312b4b02d4eb7ab0384ae03b96dc">&#9670;&nbsp;</a></span>target()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">node_ptr bn::adjacency_list::target </td>
          <td>(</td>
          <td class="paramtype">arc_ptr const &amp;&#160;</td>
          <td class="paramname"><em>arc</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Obtain a target (child) node of an arc. </p>
<p>No-throw guarantee: never throws exceptions.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">arc</td><td>an arc. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a target node pointer if it is exist; otherwise false. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>bayesian/network/<a class="el" href="adjacency__list_8hpp_source.html">adjacency_list.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
